package com.cqd.qxdemo

import com.qx.wz.deviceadapter.usb.usbserial.driver.CdcAcmSerialDriver
import com.qx.wz.deviceadapter.usb.usbserial.driver.ProbeTable
import com.qx.wz.deviceadapter.usb.usbserial.driver.UsbSerialProber

/**
 * author:CQD

 * e-mail:634897993@qq.com

 * data:  2020/4/15

 * desc:
 *
 * version:
 */
class CustomProber {
    companion object{
        fun getCustomProber(): UsbSerialProber?{
            val customTable = ProbeTable()
            customTable.addProduct(
                0x16d0,
                0x087e,
                CdcAcmSerialDriver::class.java
            ) // e.g. Digispark CDC

            return UsbSerialProber(customTable)
        }
    }
}